package com.pkdl.dto;

import java.util.Date;

// Data transfer object which is associated with BenhNhan table in database
public class BenhNhanDTO {

	private int maBenhNhan;
	private String hoTen;
	private Date ngaySinh;
	private boolean gioiTinh;
	private String ngheNghiep;
	private String diaChi;
	private String dienThoai;

	public BenhNhanDTO() {
		this.maBenhNhan = 0;
		this.hoTen = "";
		this.ngaySinh = new Date();
		this.gioiTinh = false;
		this.ngheNghiep = "";
		this.diaChi = "";
		this.dienThoai = "";
	}

	public BenhNhanDTO(int mabenhnhan, String hoten, Date ngaysinh,
			boolean gioitinh, String nghenghiep, String diachi, String dienthoai) {
		this.maBenhNhan = mabenhnhan;
		this.hoTen = hoten;
		this.ngaySinh = ngaysinh;
		this.gioiTinh = gioitinh;
		this.ngheNghiep = nghenghiep;
		this.diaChi = diachi;
		this.dienThoai = dienthoai;
	}

	public BenhNhanDTO(String hoten, Date ngaysinh, boolean gioitinh,
			String nghenghiep, String diachi, String dienthoai) {
		this.hoTen = hoten;
		this.ngaySinh = ngaysinh;
		this.gioiTinh = gioitinh;
		this.ngheNghiep = nghenghiep;
		this.diaChi = diachi;
		this.dienThoai = dienthoai;
	}

	public String getDiaChi() {
		return this.diaChi;
	}

	public String getDienThoai() {
		return this.dienThoai;
	}

	public boolean getGioiTinh() {
		return this.gioiTinh;
	}

	public String getHoTen() {
		return this.hoTen;
	}

	public int getMaBenhNhan() {
		return this.maBenhNhan;
	}

	public Date getNgaySinh() {
		return this.ngaySinh;
	}

	public String getNgheNghiep() {
		return this.ngheNghiep;
	}

	public void setDiaChi(String diaChi) {
		this.diaChi = diaChi;
	}

	public void setDienThoai(String dienThoai) {
		this.dienThoai = dienThoai;
	}

	public void setGioiTinh(boolean gioiTinh) {
		this.gioiTinh = gioiTinh;
	}

	public void setHoTen(String hoTen) {
		this.hoTen = hoTen;
	}

	public void setMaBenhNhan(int maBenhNhan) {
		this.maBenhNhan = maBenhNhan;
	}

	public void setNgaySinh(Date ngaySinh) {
		this.ngaySinh = ngaySinh;
	}

	public void setNgheNghiep(String ngheNghiep) {
		this.ngheNghiep = ngheNghiep;
	}

}
